package com.jason.order.controller;


import com.jason.order.service.OrderBusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    OrderBusService orderBusService;

    @RequestMapping("/buyOrder")
    public boolean buyOrder(){
        orderBusService.buyOrder();
        return true;
    }
}
